<?php
namespace GeoLite2;
/**
 * Модель с данными локации
 * @author kosh
 *
 */
class Location extends \Model {
	public $geoname_id,
		$continent_code,
		$continent_name,
		$country_iso_code,
		$country_name,
		$subdivision_iso_code,
		$subdivision_name,
		$city_name,
		$metro_code,
		$time_zone;

	static function fields() {
		return array_merge ( parent::fields (), [ 
				'geoname_id' => self::INT,
				'continent_code' => self::STRING,
				'continent_name' => self::STRING,
				'country_iso_code' => self::STRING,
				'country_name' => self::STRING,
				'subdivision_iso_code' => self::STRING,
				'subdivision_name' => self::STRING,
				'city_name' => self::STRING,
				'metro_code' => self::STRING,
				'time_zone' => self::STRING 
		] );
	}
}